#ifndef SDBUS_CLIENT_H
#define SDBUS_CLIENT_H

#include <sdbus-c++/IConnection.h>
#include <sdbus-c++/ProxyInterfaces.h>
#include <string>
#include <functional>
#include <thread>
#include <sdbus-c++/sdbus-c++.h>

class sdbusClinet
{
  public:
    sdbusClinet();
    ~sdbusClinet();
    std::function<void(bool)> funcMobileConnectChange;
    std::function<void(bool)> funcRecordChange;
    void Boot();
  private:
    std::thread workThread;
    std::unique_ptr<sdbus::IProxy> proxy;
    std::unique_ptr<sdbus::IConnection> session;
};

#endif
